import request from '@/utils/request';

// 登录接口---axios请求
export const Login = query => {
    return request({
        url: '/api/login',
        method: 'post',
        params: query
    });
};

//推送原始预料接口
export const materialcontentpush = query => {
    return request({
        url: '/api/push',
        method: 'POST',
        params: query
    });
};

// 品类框数据接口---自己封装
export const Catdata = query => {
    return request({
        url: '/api/categoryInit',
        method: 'GET',
        params: query
    });
};


// 标签三级联动接口
export const tagthree = query => {
    return request({
        url: '/api/tagInit',
        method: 'GET',
        params: query
    });
};

//  增加一条句子保存接口---axios
export const addsentence = query => {
    return request({
        url: '/api/saveSentence',
        method: 'POST',
        params: query
    });
};

//列表也分页接口
export const finishlist = query => {
    return request({
        url: '/api/findPageByUserId',
        method: 'POST',
        params: query
    });
};
//删除接口
export const del = query => {
    return request({
        url: '/api/deleteSentence',
        method: 'POST',
        params: query
    });
};


